// scripts/deploy.js
async function main() {
  const [deployer] = await ethers.getSigners();
  console.log("Deploying contracts with the account:", deployer.address);

  const DonationPlatform = await ethers.getContractFactory("DonationPlatform");
  const donationPlatform = await DonationPlatform.deploy();

  await donationPlatform.deployed();
  console.log("DonationPlatform deployed to:", donationPlatform.address);
}

main()
  .then(() => process.exit(0))
  .catch(error => {
    console.error(error);
    process.exit(1);
  });